function $(val) {
    return document.querySelector(val);
}

function $$(val) {
    return document.querySelectorAll(val);
}

function $$$(val) {
    return document.createElement(val);
}

function formateDate(val) {
    const date = new Date(val);
    let year = date.getFullYear();
    let month = date.getMonth() + 1;
    month = month.toString().padStart(2, '0');
    let day = date.getDay();
    day = day.toString().padStart(2, '0');

    let hour = date.getHours();
    day = day.toString().padStart(2, '0');


    let minutes = date.getMinutes();
    minutes = minutes.toString().padStart(2, '0');

    let second = date.getMilliseconds();
    second = second.toString().padStart(2, '0');

    return `${year}-${month}-${day} ${hour}:${minutes}:${second}`
}